Skip to content

Add scheduler plans to runtime strategy switches#54

Merged
Pigbibi merged 1 commit into
mainfrom
codex/runtime-scheduler-plan-20260619
Jun 18, 2026
Merged

Add scheduler plans to runtime strategy switches#54
Pigbibi merged 1 commit into
mainfrom
codex/runtime-scheduler-plan-20260619

Conversation

@Pigbibi

@Pigbibi Pigbibi commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add scheduler plans to generated runtime targets
  • use monthly windows for DCA and snapshot-backed profiles
  • validate runtime_target.scheduler cron shape

Tests

  • python3 -m unittest tests.test_runtime_settings

@Pigbibi Pigbibi merged commit bb833bf into main Jun 18, 2026
2 checks passed
@Pigbibi Pigbibi deleted the codex/runtime-scheduler-plan-20260619 branch June 18, 2026 17:34

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 7d4d9af944

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

"account_scope": account_scope,
"service_name": service_name,
"execution_mode": execution_mode,
"scheduler": _scheduler_plan_for_strategy(strategy_profile),

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Add scheduler to the JSON schema

This now always emits runtime_target.scheduler, but the published contract in schemas/runtime-target.schema.json still sets runtime_target.additionalProperties to false and does not list scheduler among the allowed properties (schema lines 37-50). Any generated switch target or saved target that includes this field will be rejected by consumers/editors using the repository schema even though runtime_settings.py validate accepts it, so the schema needs to be extended alongside this output change.

Useful? React with 👍 / 👎.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 7d4d9af944

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

"account_scope": account_scope,
"service_name": service_name,
"execution_mode": execution_mode,
"scheduler": _scheduler_plan_for_strategy(strategy_profile),

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Add scheduler to the JSON schema

This now always emits runtime_target.scheduler, but the published contract in schemas/runtime-target.schema.json still sets runtime_target.additionalProperties to false and does not list scheduler among the allowed properties (schema lines 37-50). Any generated switch target or saved target that includes this field will be rejected by consumers/editors using the repository schema even though runtime_settings.py validate accepts it, so the schema needs to be extended alongside this output change.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant